/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alpes.aerolinea;

import alpes.aerolinea.entities.ServicioVideoPeliculas;
import alpes.aerolinea.entities.ServicioVideoSeries;
import alpes.aerolinea.entities.ServicioVideoVideos;
import alpes.aerolinea.services.IPeliculasService;
import alpes.aerolinea.services.IVideosService;
import alpes.aerolinea.services.PeliculasKidsService;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Daniel
 */

public class VideosKidsMenuBean {

    private List<ServicioVideoVideos> videos;
    @EJB
    private IVideosService videosService;

    /** Creates a new instance of SeriesDeTvMenuBean */
    public VideosKidsMenuBean() {
        System.out.println("constructor!!!!!");
       //seriesDeTvService = new SeriesDeTvService();
    }

    @PostConstruct
    public void init() {
        videos =  videosService.findAll();
    }


    public List<ServicioVideoVideos> getAllVideos() {
       return videos;
    }
}
